<?php
/**
 * Yabsta News
 * 
 * Application configuration file
 *
 * This file is a subject under proprietary sofrware license
 *
 * @category
 * @package
 * @subpackage
 * @author      valerii lazarevych <lazarevuch@gmail.com>
 * @copyright   copyright(c) valerii lazarevych
 * @license     proprietary software license
 * @version     $Id: index.php 26.05.2012 2:56:06 valerii $
 */

$root=dirname(__FILE__);

$root           .=      '/../';
$rootPublic     =       $root . 'public/';
$baseUrl        =       '/';

$config = array (    
    'db'    => array (                    
        'adapter'   => 'PDO_MYSQL',
        'params'    => array(            
            'host'          =>  'localhost',
            'port'          =>  '', 
            'username'      =>  'root',            
            'password'      =>  '',
            'dbname'        =>  'localhost',
            'driver_options'=> array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES UTF8')
        ),
    ),
    
    'url'   => array (         
         'base'         => $baseUrl,         
         'public'       => $baseUrl . 'public',       
         'img'          => $baseUrl . 'layout/img/',         
         'css'          => $baseUrl . 'layout/css/',
     ),
    
    'path'  => array (        
        'root'         => $root,        
        'application'  => $root . 'application/',        
        'library'      => $root . 'libs/',        
        'models'       => $root . 'application/models/',        
        'controllers'  => $root . 'application/controllers/',        
        'views'        => $root . 'application/views/',        
        'layouts'      => $root . '/public/layout/',        
        'system'       => $root . 'application/',        
        'settings'     => $root . 'application/',        
        'design_patterns' => $root . 'libs/design_patterns/'
     ),
 
    'common' => array (         
         'charset'      => 'utf-8',
     ),
     
    'debug' => array (         
         'on'           => true,
     ),
);

date_default_timezone_set("Europe/Kiev");
